package com.lxd.milktea.service;

import com.lxd.milktea.dataobject.OrderDetail;
import com.lxd.milktea.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * @ProjectName: milktea
 * @Package: com.lxd.milktea.service
 * @ClassName: OrderService
 * @Author: carrymaniac
 * @Description:
 * @Date: 2020/5/3 2:15 下午
 * @Version:
 */
public interface OrderService {
    /**
     * 创建订单
     * @param orderDTO
     * @return
     */
    OrderDTO create(OrderDTO orderDTO);
    /** 查询所有订单列表（卖家使用） **/
    Page<OrderDTO> findList(Pageable pageable);

    /**
     *  查询某个订单
     * @param orderID
     * @return
     */
    OrderDTO findOne(String orderID);


    /**
     *
     * @param createTime
     * @return
     */
    List<OrderDetail> findListByDate(Timestamp createTime);
}
